#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do_args.py
# author:Jackiex
# datetime:2023/4/20 14:03
# software: PyCharm

"""
  函数参数，是不定长的参数
"""


# import module your need
# *args 用来将参数打包成tuple给函数体调用


# def func(*args):
#     print("参数为：",args)
#     for i in args:
#         print("参数里面的值为：",i)
#
#
# func(1, 2, 3, 45, 6)
#
# print("————————"*4)
#
# func(3, 4, 5)

def func1(x,*args):
    print("参数1为：", x)
    print("参数2为：",args)
    for i in args:
        print("参数2里面的值为：",i)


func1(1, 2, 3, 45, 6)

print("————————"*4)

func1(3, 4, 5)
